package org.cainiao.servlet.storage.mybatisplus.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 用户管理
 * <p>
 * Author: Cai Niao(wdhlzd@163.com)<br />
 */
@Controller
@RequestMapping("view")
@RequiredArgsConstructor
public class TestController {

    @GetMapping("hello")
    public String sayHello(Model model) {
        model.addAttribute("message", "Hello, Spring MVC!");
        return "hello";
    }
}
